<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script setup lang="ts">
// import request from '@/utils/request'
import { onMounted } from 'vue'
import { reqLogin } from './api/user'
//当你组件挂在完毕测试发一个请求
onMounted(() => {
  // request({
  //   url: '/user/login',
  //   method: 'post',
  //   data: {
  //     username: 'admin',
  //     password: '111111',
  //   },
  // }).then((res) => {
  //   console.log(res)
  // })
  reqLogin({ username: 'admin', password: '111111' }).then((res) => {
    console.log(res)
  })
})
</script>

<style scoped lang="scss">
div {
  h1 {
    color: $base-themeColor;
  }
}
</style>
